import { DataState } from '@/pages/inventory/interface';
import request from './index';

export function fetchInventoryList(params: {
    pageSize: number;
    current: number;
}): Promise<RDD<{ total: number; data: DataState[] }>> {
    return request.post('/getBookStoreList', {
        data: {
            page: params.current,
            limit: params.pageSize,
        },
    });
}
